﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using INFSWA02.Models.DecoratorModels;
using INFSWA02.AbstractFactoryModels.Processors;
using INFSWA02.AbstractFactoryModels.Harddisks;

namespace INFSWA02.Models.Decorators
{
    public abstract class LaptopDecorator : Laptop
    {
        private Laptop _decoratedLaptop;

        public LaptopDecorator(Laptop decoratedLaptop)
        {
            _decoratedLaptop = decoratedLaptop;
        }

        public override IProcessor Processor { get; set; }
        public override IHarddisk Harddisk { get; set; }

        public override double GetCost()
        {
            return _decoratedLaptop.GetCost();
        }
    }
}
